package com.lichuang.dedao.user.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 卡券
 * </p>
 *
 * @author hanghang
 * @since 2019-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Coupon对象", description = "卡券")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "卡券id")
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    @ApiModelProperty(value = "卡券名称")
    private String name;

    @ApiModelProperty(value = "卡券金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "卡券类型")
    private Integer type;

    @ApiModelProperty(value = "满多少金额才能使用")
    private BigDecimal withAmount;

    @ApiModelProperty(value = "卡券适用的品类")
    private Integer category;

    @ApiModelProperty(value = "卡券截止时间")
    private LocalDateTime cutTime;

    @ApiModelProperty(value = "卡券发放时间")
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
